//    Copyright (C) Kherty.  All rights reserved.
using System;
using System.Windows.Data;

namespace OpenLS.Drawing.UI
{
    class EnumEnumerator : IValueConverter
    {
        #region IValueConverter Members

        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            var t = (Type)value;
            return Enum.GetValues(t);
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotSupportedException();
        }

        #endregion
    }
}
